<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8"/>
        <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
        <meta http-equiv="X-UA-Compatible" content="ie=edge"/>
        <title>Document</title>
        <script>
            var arr = [{
                id: 1,
                title: "Redmi Note 8 Pro",
                img: "//cdn.cnbj1.fds.api.mi-img.com/mi-mall/165b2b75ac5296cb0fd24682fdce85a3.jpg?thumb=1&w=200&h=200&f=webp&q=90",
                desc: "6400万全场景四摄",
                price: 1399
                                    
            }, {
                id: 1,
                title: "Redmi Note 8 Pro",
                img: "//cdn.cnbj1.fds.api.mi-img.com/mi-mall/165b2b75ac5296cb0fd24682fdce85a3.jpg?thumb=1&w=200&h=200&f=webp&q=90",
                desc: "6400万全场景四摄",
                price: 1399
                                    
            },
            {
                id: 1,
                title: "Redmi Note 8 Pro",
                img: "//cdn.cnbj1.fds.api.mi-img.com/mi-mall/165b2b75ac5296cb0fd24682fdce85a3.jpg?thumb=1&w=200&h=200&f=webp&q=90",
                desc: "6400万全场景四摄",
                price: 1399
                                    
            }];

            var str = JSON.stringify(arr);
            document.write(str);
        </script>
    </head>
    <body>
        
    </body>
</html>